#pragma once
#include <string>
#include <iostream>
using namespace std;

class func
{
public:
	func(string a)
	{
		cout<<"func()"<<endl;
	}
	~func()
	{
		cout<<"~func()"<<endl;
	}

};

class test : public func
{
public:
	test() : func("hhhhhh")
	{
		cout<<"test()"<<endl;
	}
	~test()
	{
		cout<<"~test()"<<endl;
	}
};